﻿using IdentityService.Domain.Aggregates.RoleAggregate;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace IdentityService.Infrastructure.EntitiesConfig
{
    internal class RolePermitConfig : IEntityTypeConfiguration<RolePermit>
    {
        public void Configure(EntityTypeBuilder<RolePermit> builder)
        {
            builder.HasKey(it => it.Id);
            builder.Property(it => it.Id).ValueGeneratedNever();
        }
    }
}
